home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 26 code / Truffles-Display Mgr.sit / Truffles - Display Mgr. / SuperFly source / GDeviceWindow.h < prev    next >
MacBinary  |  1996-01-19  |  2.4 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Jan 18 20:34:09 1996, modified Thu Jan 18 20:34:09 1996, creator 'CWIE', type ASCII, 1689 bytes "GDeviceWindow.h" , at 0x719 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 47 44 65 76 69 63 | 65 57 69 6e 64 6f 77 2e |..GDevic|eWindow.|
|00000010| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 06 99 00 | 00 01 9a ad 24 a5 91 ad |........|....$...|
|00000060| 24 a5 91 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |$.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 6a 51 00 00 |........|....jQ..|
|00000080| 2f 2a 0d 09 46 69 6c 65 | 3a 09 09 47 44 65 76 69 |/*..File|:..GDevi|
|00000090| 63 65 57 69 6e 64 6f 77 | 2e 68 0d 0d 09 43 6f 6e |ceWindow|.h...Con|
|000000a0| 74 61 69 6e 73 3a 09 41 | 20 77 69 6e 64 6f 77 20 |tains:.A| window |
|000000b0| 74 68 61 74 20 64 69 73 | 70 6c 61 79 73 20 69 6e |that dis|plays in|
|000000c0| 66 6f 72 6d 61 74 69 6f | 6e 20 61 62 6f 75 74 20 |formatio|n about |
|000000d0| 61 20 47 44 65 76 69 63 | 65 0d 09 09 09 09 0d 09 |a GDevic|e.......|
|000000e0| 57 72 69 74 74 65 6e 20 | 62 79 3a 20 4b 65 6e 74 |Written |by: Kent|
|000000f0| 20 4d 69 6c 6c 65 72 0d | 09 0d 09 43 6f 70 79 72 | Miller.|...Copyr|
|00000100| 69 67 68 74 3a 09 a9 20 | 31 39 39 35 20 41 70 70 |ight:.. |1995 App|
|00000110| 6c 65 20 43 6f 6d 70 75 | 74 65 72 0d 0d 09 43 68 |le Compu|ter...Ch|
|00000120| 61 6e 67 65 20 48 69 73 | 74 6f 72 79 20 28 6d 6f |ange His|tory (mo|
|00000130| 73 74 20 72 65 63 65 6e | 74 20 66 69 72 73 74 29 |st recen|t first)|
|00000140| 3a 0d 09 20 0d 20 2a 2f | 0d 0d 23 69 66 6e 64 65 |:.. . */|..#ifnde|
|00000150| 66 09 09 5f 47 44 45 56 | 49 43 45 57 49 4e 44 4f |f.._GDEV|ICEWINDO|
|00000160| 57 5f 0d 23 64 65 66 69 | 6e 65 09 09 5f 47 44 45 |W_.#defi|ne.._GDE|
|00000170| 56 49 43 45 57 49 4e 44 | 4f 57 5f 0d 0d 23 69 66 |VICEWIND|OW_..#if|
|00000180| 6e 64 65 66 09 09 5f 57 | 49 4e 44 4f 57 5f 0d 23 |ndef.._W|INDOW_.#|
|00000190| 69 6e 63 6c 75 64 65 09 | 22 57 69 6e 64 6f 77 2e |include.|"Window.|
|000001a0| 68 22 0d 23 65 6e 64 69 | 66 0d 0d 23 69 66 6e 64 |h".#endi|f..#ifnd|
|000001b0| 65 66 09 09 5f 44 49 53 | 50 4c 41 59 53 5f 0d 23 |ef.._DIS|PLAYS_.#|
|000001c0| 69 6e 63 6c 75 64 65 09 | 3c 44 69 73 70 6c 61 79 |include.|<Display|
|000001d0| 73 2e 68 3e 0d 23 65 6e | 64 69 66 0d 0d 23 69 66 |s.h>.#en|dif..#if|
|000001e0| 6e 64 65 66 09 09 5f 50 | 41 4c 45 54 54 45 53 5f |ndef.._P|ALETTES_|
|000001f0| 0d 23 69 6e 63 6c 75 64 | 65 09 3c 50 61 6c 65 74 |.#includ|e.<Palet|
|00000200| 74 65 73 2e 68 3e 0d 23 | 65 6e 64 69 66 0d 0d 23 |tes.h>.#|endif..#|
|00000210| 64 65 66 69 6e 65 20 4d | 61 78 28 78 2c 79 29 20 |define M|ax(x,y) |
|00000220| 28 78 20 3e 20 79 29 20 | 3f 20 78 3a 79 3b 0d 23 |(x > y) |? x:y;.#|
|00000230| 64 65 66 69 6e 65 20 4d | 69 6e 28 78 2c 79 29 20 |define M|in(x,y) |
|00000240| 28 78 20 3c 20 79 29 20 | 3f 20 78 3a 79 3b 0d 0d |(x < y) |? x:y;..|
|00000250| 63 6c 61 73 73 09 54 47 | 44 65 76 69 63 65 57 69 |class.TG|DeviceWi|
|00000260| 6e 64 6f 77 09 3a 09 70 | 75 62 6c 69 63 20 54 57 |ndow.:.p|ublic TW|
|00000270| 69 6e 64 6f 77 0d 09 7b | 0d 70 72 6f 74 65 63 74 |indow..{|.protect|
|00000280| 65 64 3a 0d 70 75 62 6c | 69 63 3a 0d 09 09 09 09 |ed:.publ|ic:.....|
|00000290| 09 09 09 54 47 44 65 76 | 69 63 65 57 69 6e 64 6f |...TGDev|iceWindo|
|000002a0| 77 28 29 3b 0d 09 76 69 | 72 74 75 61 6c 20 09 09 |w();..vi|rtual ..|
|000002b0| 09 09 7e 54 47 44 65 76 | 69 63 65 57 69 6e 64 6f |..~TGDev|iceWindo|
|000002c0| 77 28 29 3b 0d 0d 2f 2f | 4f 76 65 72 72 69 64 64 |w();..//|Overridd|
|000002d0| 65 6e 20 6d 65 74 68 6f | 64 73 0d 09 76 69 72 74 |en metho|ds..virt|
|000002e0| 75 61 6c 20 57 69 6e 64 | 6f 77 50 74 72 09 09 4d |ual Wind|owPtr..M|
|000002f0| 61 6b 65 4e 65 77 57 69 | 6e 64 6f 77 28 57 69 6e |akeNewWi|ndow(Win|
|00000300| 64 6f 77 50 74 72 20 62 | 65 68 69 6e 64 57 69 6e |dowPtr b|ehindWin|
|00000310| 64 6f 77 29 3b 0d 09 76 | 69 72 74 75 61 6c 20 76 |dow);..v|irtual v|
|00000320| 6f 69 64 09 09 09 44 72 | 61 77 28 76 6f 69 64 29 |oid...Dr|aw(void)|
|00000330| 3b 0d 09 76 69 72 74 75 | 61 6c 20 76 6f 69 64 09 |;..virtu|al void.|
|00000340| 09 09 43 6c 69 63 6b 28 | 45 76 65 6e 74 52 65 63 |..Click(|EventRec|
|00000350| 6f 72 64 20 2a 20 61 6e | 45 76 65 6e 74 29 3b 0d |ord * an|Event);.|
|00000360| 09 76 69 72 74 75 61 6c | 20 76 6f 69 64 09 09 09 |.virtual| void...|
|00000370| 41 63 74 69 76 61 74 65 | 28 42 6f 6f 6c 65 61 6e |Activate|(Boolean|
|00000380| 20 61 63 74 69 76 61 74 | 69 6e 67 29 3b 0d 0d 09 | activat|ing);...|
|00000390| 76 69 72 74 75 61 6c 20 | 76 6f 69 64 09 09 09 44 |virtual |void...D|
|000003a0| 72 61 67 28 50 6f 69 6e | 74 20 73 74 61 72 74 50 |rag(Poin|t startP|
|000003b0| 6f 69 6e 74 29 3b 0d 09 | 76 69 72 74 75 61 6c 09 |oint);..|virtual.|
|000003c0| 76 6f 69 64 09 09 09 41 | 64 6a 75 73 74 4d 65 6e |void...A|djustMen|
|000003d0| 75 73 42 65 66 6f 72 65 | 4d 65 6e 75 53 65 6c 65 |usBefore|MenuSele|
|000003e0| 63 74 69 6f 6e 28 76 6f | 69 64 29 3b 0d 0d 2f 2f |ction(vo|id);..//|
|000003f0| 4e 65 77 20 4d 65 74 68 | 6f 64 73 0d 09 76 69 72 |New Meth|ods..vir|
|00000400| 74 75 61 6c 20 4f 53 45 | 72 72 09 09 09 53 65 74 |tual OSE|rr...Set|
|00000410| 55 70 44 61 74 61 28 47 | 44 48 61 6e 64 6c 65 20 |UpData(G|DHandle |
|00000420| 74 68 65 47 44 29 3b 0d | 09 76 69 72 74 75 61 6c |theGD);.|.virtual|
|00000430| 09 76 6f 69 64 09 09 09 | 57 69 6e 64 6f 77 4f 6e |.void...|WindowOn|
|00000440| 44 65 76 69 63 65 28 76 | 6f 69 64 29 3b 0d 0d 70 |Device(v|oid);..p|
|00000450| 72 6f 74 65 63 74 65 64 | 3a 0d 2f 2f 76 61 72 69 |rotected|:.//vari|
|00000460| 61 62 6c 65 73 0d 09 44 | 69 73 70 6c 61 79 49 44 |ables..D|isplayID|
|00000470| 54 79 70 65 09 09 74 68 | 65 49 44 3b 20 20 2f 2f |Type..th|eID; //|
|00000480| 45 76 65 6e 20 74 68 6f | 75 67 68 20 47 44 48 61 |Even tho|ugh GDHa|
|00000490| 6e 64 6c 65 73 20 6d 69 | 67 68 74 20 63 68 61 6e |ndles mi|ght chan|
|000004a0| 67 65 2c 20 74 68 65 20 | 44 69 73 70 6c 61 79 20 |ge, the |Display |
|000004b0| 4d 61 6e 61 67 65 72 0d | 09 09 09 09 09 09 09 09 |Manager.|........|
|000004c0| 2f 2f 49 44 20 77 69 6c | 6c 20 61 6c 77 61 79 73 |//ID wil|l always|
|000004d0| 20 72 65 6d 61 69 6e 20 | 74 68 65 20 73 61 6d 65 | remain |the same|
|000004e0| 2e 20 20 49 66 20 74 68 | 69 73 20 77 69 6e 64 6f |. If th|is windo|
|000004f0| 77 20 69 73 20 6f 6e 0d | 09 09 09 09 09 09 09 09 |w is on.|........|
|00000500| 2f 2f 61 20 6d 69 72 72 | 6f 72 65 64 20 64 65 76 |//a mirr|ored dev|
|00000510| 69 63 65 2c 20 74 68 69 | 73 20 77 69 6c 6c 20 62 |ice, thi|s will b|
|00000520| 65 20 74 68 65 20 49 44 | 20 6f 66 20 74 68 65 20 |e the ID| of the |
|00000530| 66 69 72 73 74 20 64 65 | 76 69 63 65 0d 09 09 09 |first de|vice....|
|00000540| 09 09 09 09 09 2f 2f 74 | 68 61 74 20 68 61 64 20 |.....//t|hat had |
|00000550| 74 68 65 20 6d 69 72 72 | 6f 72 65 64 20 73 70 61 |the mirr|ored spa|
|00000560| 63 65 20 77 68 65 6e 20 | 74 68 65 20 77 69 6e 64 |ce when |the wind|
|00000570| 6f 77 20 77 61 73 20 63 | 72 65 61 74 65 64 2e 0d |ow was c|reated..|
|00000580| 0d 09 7d 3b 0d 0d 70 61 | 73 63 61 6c 20 76 6f 69 |..};..pa|scal voi|
|00000590| 64 20 47 44 65 76 69 63 | 65 57 69 6e 64 6f 77 44 |d GDevic|eWindowD|
|000005a0| 72 61 77 69 6e 67 50 72 | 6f 63 20 28 09 53 49 6e |rawingPr|oc (.SIn|
|000005b0| 74 31 36 09 09 64 65 70 | 74 68 2c 0d 09 09 09 09 |t16..dep|th,.....|
|000005c0| 09 09 09 09 09 09 53 49 | 6e 74 31 36 09 09 64 65 |......SI|nt16..de|
|000005d0| 76 69 63 65 46 6c 61 67 | 73 2c 0d 09 09 09 09 09 |viceFlag|s,......|
|000005e0| 09 09 09 09 09 47 44 48 | 61 6e 64 6c 65 09 74 61 |.....GDH|andle.ta|
|000005f0| 72 67 65 74 44 65 76 69 | 63 65 2c 0d 09 09 09 09 |rgetDevi|ce,.....|
|00000600| 09 09 09 09 09 09 53 49 | 6e 74 33 32 09 09 75 73 |......SI|nt32..us|
|00000610| 65 72 44 61 74 61 29 3b | 0d 0d 76 6f 69 64 20 44 |erData);|..void D|
|00000620| 72 61 77 54 68 69 73 43 | 53 74 72 69 6e 67 48 65 |rawThisC|StringHe|
|00000630| 72 65 28 75 6e 73 69 67 | 6e 65 64 20 63 68 61 72 |re(unsig|ned char|
|00000640| 20 2a 20 73 2c 20 53 49 | 6e 74 31 36 20 68 2c 20 | * s, SI|nt16 h, |
|00000650| 53 49 6e 74 31 36 20 76 | 29 3b 0d 76 6f 69 64 20 |SInt16 v|);.void |
|00000660| 44 72 61 77 41 52 61 6d | 70 28 53 49 6e 74 31 36 |DrawARam|p(SInt16|
|00000670| 20 64 65 70 74 68 2c 20 | 52 65 63 74 20 2a 20 72 | depth, |Rect * r|
|00000680| 61 6d 70 52 65 63 74 20 | 29 3b 0d 76 6f 69 64 20 |ampRect |);.void |
|00000690| 53 65 74 52 61 6d 70 52 | 47 42 43 6f 6c 6f 72 28 |SetRampR|GBColor(|
|000006a0| 52 47 42 43 6f 6c 6f 72 | 20 2a 20 74 68 65 52 47 |RGBColor| * theRG|
|000006b0| 42 2c 20 53 49 6e 74 31 | 36 20 76 61 6c 75 65 2c |B, SInt1|6 value,|
|000006c0| 20 53 49 6e 74 31 36 20 | 72 61 6d 70 43 6f 6c 6f | SInt16 |rampColo|
|000006d0| 72 29 3b 0d 76 6f 69 64 | 20 44 72 61 77 4d 69 6e |r);.void| DrawMin|
|000006e0| 69 4d 6f 6e 69 74 6f 72 | 73 28 52 65 63 74 20 2a |iMonitor|s(Rect *|
|000006f0| 64 72 61 77 48 65 72 65 | 2c 20 47 44 48 61 6e 64 |drawHere|, GDHand|
|00000700| 6c 65 20 74 68 69 73 47 | 44 65 76 69 63 65 29 3b |le thisG|Device);|
|00000710| 0d 0d 23 65 6e 64 69 66 | 0d 00 00 00 00 00 00 00 |..#endif|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000780| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000790| 00 12 4e 69 6b 69 00 00 | 00 1e 00 00 ff ff 00 00 |..Niki..|........|
|000007a0| 00 00 00 00 00 00 00 00 | ff ff 00 00 00 08 01 9a |........|........|
|000007b0| 0f 47 44 65 76 69 63 65 | 57 69 6e 64 6f 77 2e 68 |.GDevice|Window.h|
|000007c0| 02 00 00 00 54 45 58 54 | 43 57 49 45 01 00 00 92 |....TEXT|CWIE....|
|000007d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 92 00 4f |..TEXTCW|IE.....O|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 ac c8 25 09 00 00 | 06 99 00 00 01 9a 00 00 |....%...|........|
|00000800| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008a0| 00 00 00 00 00 00 00 03 | 00 04 00 84 02 1c 03 45 |........|.......E|
|000008b0| 04 21 00 84 02 1c 03 45 | 04 21 ad db 0c 43 00 00 |.!.....E|.!...C..|
|000008c0| 03 e7 00 00 03 f4 00 00 | 00 c2 01 00 00 00 00 04 |........|........|
|000008d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000008e0| 00 00 00 46 01 91 5b 48 | 2a f8 00 00 00 1c 00 46 |...F..[H|*......F|
|000008f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000900| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000910| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+